const Sequelize = require('sequelize');
const seq = require('../utils/db')
const User = seq.define('user', {
  // 在这里定义模型属性
  userName: {
    type: Sequelize.DataTypes.STRING,
    // allowNull: false
  },
  psd: {
    type: Sequelize.DataTypes.STRING
    // allowNull 默认为 true
  },
  id: {
    type: Sequelize.DataTypes.INTEGER,
    primaryKey: true  ,
    autoIncrement: true
  }
}, {
  // 这是其他模型参数
});

// (async () => {
//   await seq.sync({ force: true });
// })();

module.exports = User
